<template>
    <div class="header">
        <div class="header-left">
            <span class="iconfont iconfanhui return_icon"></span>
        </div>
        <div class="header-input">
            <span class="iconfont iconsousuo search_icon"></span>
            输入城市名称
        </div>
        <router-link to="/city">
            <div class="header-right">
                {{this.$store.state.city}}
                <span class="iconfont iconxiajiantou arrow_icon"></span>
            </div>
        </router-link>
    </div>
</template>

<script>
export default {
    name: "HomeHeader",
    data(){
        return{
            current_city_name:'',
        }
    },
}
</script>

<style scoped>
.header {
    display: flex;
    line-height: 0.86rem;
    background: #00bcd4;
    color: #ffffff;
}

.header .header-left {
    width: 0.64rem;
    float: left;
    text-align: center;
    margin: 0 .2rem;
}

.header .header-left .return_icon {
    text-align: center;
    font-size: 0.5rem;
}

.header .header-input {
    flex: 1;
    height: .64rem;
    margin: .12rem 0rem .12rem .1rem;
    background: #ffffff;
    border-radius: 0.1rem;
    color: #cccccc !important;
    line-height: .64rem;
}

.header .header-input .search_icon {
    text-align: center;
    padding-left: 0.2rem;
}

.header .header-right {
    width: 2.4rem;
    float: right;
    text-align: center;
    font-size: 0.3rem;
    line-height: 0.86rem;
    color:#ffffff;
}

.header .header-right .arrow_icon {
    font-size: 0.35rem;
}
</style>